//
//  WDArrivalServiceRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/6.
//

#import "WDArrivalServiceRequest.h"

@interface WDArrivalServiceRequest ()
@property (nonatomic, strong) WDArrivalServiceReqModel *reqModel;
@end

@implementation WDArrivalServiceRequest

- (instancetype)initWithModel:(WDArrivalServiceReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kSTATION_TASK_ARRIVAL_PAGE;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeHTTP;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodGET;
}

- (id)requestArgument {
    NSDictionary *params = [self.reqModel yy_modelToJSONObject];
    return params;
}

- (Class)rspClass {
    return [WDBaseRspModel class];
}

- (Class)recordsRspClass {
    return [WDArrivalServiceItemModel class];
}

@end























